﻿@using Kendo.Mvc.UI

@(Html.Kendo().DropDownList()
        .Name("TbKhoa") // Name of the widget should be the same as the name of the property
        .DataValueField("MaKhoa") // The value of the dropdown is taken from the EmployeeID property
        .DataTextField("TenKhoa") // The text of the items is taken from the EmployeeName property
        .BindTo((System.Collections.IEnumerable)ViewData["Khoa"]) // A list of all employees which is populated in the controller
)